package com.github.pig.training.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 补考登记
 * </p>
 *
 * @author andrew
 * @since 2018-06-23
 */
@TableName("training_made_up")
public class TrainingMadeUp extends Model<TrainingMadeUp> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "fid", type = IdType.AUTO)
    private Integer fid;
    /**
     * 科目
     */
    @TableField("subject_id")
    private String subjectId;
    /**
     * 补考费
     */
    private BigDecimal amount;
    /**
     * 学员
     */
    @TableField("student_id")
    private Integer studentId;
    /**
     * 是否支付
     */
    @TableField("is_pay")
    private String isPay;
    /**
     * 支付方式
     */
    @TableField("pay_type")
    private String payType;
    /**
     * 考场
     */
    @TableField("made_room")
    private String madeRoom;
    /**
     * 预约考试日期
     */
    @TableField("appointment_date")
    private Date appointmentDate;
    /**
     * 状态
     */
    @TableField("biz_status")
    private String bizStatus;
    /**
     * 创建人
     */
    @TableField("create_user")
    private Integer createUser;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 最后修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 最后修改人
     */
    @TableField("update_user")
    private Integer updateUser;
    /**
     * 版本
     */
    @Version
    private Integer version;
    /**
     * 删除标识
     */
    @TableField("del_flag")
    private String delFlag;


    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public String getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getIsPay() {
        return isPay;
    }

    public void setIsPay(String isPay) {
        this.isPay = isPay;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getMadeRoom() {
        return madeRoom;
    }

    public void setMadeRoom(String madeRoom) {
        this.madeRoom = madeRoom;
    }

    public Date getAppointmentDate() {
        return appointmentDate;
    }

    public void setAppointmentDate(Date appointmentDate) {
        this.appointmentDate = appointmentDate;
    }

    public String getBizStatus() {
        return bizStatus;
    }

    public void setBizStatus(String bizStatus) {
        this.bizStatus = bizStatus;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.fid;
    }

    @Override
    public String toString() {
        return "TrainingMadeUp{" +
        ", fid=" + fid +
        ", subjectId=" + subjectId +
        ", amount=" + amount +
        ", studentId=" + studentId +
        ", isPay=" + isPay +
        ", payType=" + payType +
        ", madeRoom=" + madeRoom +
        ", appointmentDate=" + appointmentDate +
        ", bizStatus=" + bizStatus +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        ", version=" + version +
        ", delFlag=" + delFlag +
        "}";
    }
}
